import React from "react";
import { Button } from "antd";
import { ArrowLeftOutlined } from "@ant-design/icons";

const GoBackHeader = () => {
  const goBack = () => {
    window.history.back();
  };
  return (
    <div
      style={{
        marginBottom: "16px",
        width: "100%",
        paddingLeft: "16px",
        marginTop: "16px",
      }}
    >
      <Button
        type="text"
        icon={<ArrowLeftOutlined style={{ fontSize: "20px" }} />}
        onClick={goBack}
      />
    </div>
  );
};

export default GoBackHeader;
